package com.tedu.weibo.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 向客户端发送微博详情
 */
@Data
public class WeiboDetailVO {
    @ApiModelProperty(value = "微博id",required = true, example = "1")
    private Integer id;
    @ApiModelProperty(value = "微博内容",required = true, example = "今天天气不错呀！")
    private String content;
    @ApiModelProperty(value = "用户昵称",required = true, example = "张三")
    private String nickname;
    /*
        日期格式字符串可以参考test包下的测试类，咱们使用了一个方法测试了格式规则
     */
    @ApiModelProperty(value = "发布日期",required = true, example = "2024年09月16号 11点22分35秒")
    @JsonFormat(pattern="yyyy年MM月dd号 HH点mm分ss秒",timezone="GMT+8" )
    private Date created;
}
